<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div>
        <!-- 转义输出 -->
        <h1>
            <%= html %>
        </h1>
        <!-- 非转义输出 -->
        <h1>
            <%= title %>
        </h1>
        <!-- 数组循环 -->
        <ul>
            <% for(var i=0;i<arr.length;i++){ %>
            <li>
                <span><%= arr[i].id %></span>
                <b><%= arr[i].hobby %></b>
            </li>
            <% } %>
        </ul>

    </div>
</body>

</html>